
@using NakedObjects.Web.Mvc.Html
<!DOCTYPE html>
<html lang="en">
    <head runat="server">
        <meta charset="utf-8" />
        <title>@RenderSection("Title", required: false)</title>
        <link href="@(Url.Content("~/favicon.ico"))" rel="shortcut icon" type="image/x-icon" />
        <meta name="viewport" content="width=device-width" />
        @(Styles.Render("~/Content/css", "~/Content/themes/base/css", "~/Content/nakedobjectscss" ))
        @(Scripts.Render("~/bundles/modernizr"))       
    </head>
    <body>
        <header>
            @if (!Html.ViewContext.HttpContext.Request.IsAjaxRequest()) {    
                <div class="content-wrapper">
                    <div class="float-left">
                        <p class="site-title">Naked Objects MVC - Razor</p>
                    </div>
                    <div class="float-right">
                        <section id="login">
                            @(Html.Partial("_LoginPartial"))
                        </section>
                        <nav>
                            <ul id="menu">
                                <li>@(Html.ActionLink("Home", "Index", "System"))</li>
                            </ul>
                            
                        </nav>
                    </div>
                    @(Html.Services())
                </div>
            }
            <div class="no-home-path" style="display: none">@(Html.ActionLink("Home", "Index", "System"))</div>
        </header>
        <div id="body">
            @RenderSection("FeaturedContent", required: false)
            <section class="content-wrapper main-content clear-fix">
                @RenderSection("MainContent", required: false)
            </section>
        </div>
        <footer>
            <div class="content-wrapper">
                <div class="float-left">
                    <p>&copy; @(DateTime.Now.Year) - Naked Objects Group Ltd</p>
                </div>
            </div>
        </footer>
        
        <!--AJAX:  Replace nakedobjectsajax with nakedobjectsbasic bundle if non-ajax is required -->
        <!--DATE FORMATS:   The jquerydatepicker bundle specifies that the JQuery DatePicker uses the en-GB date format (dd/mm/yy).
        To use the US format (mm/dd/yy) just remove the bundle. Or to use another locale, specify the appropriate
        version of jquery.ui.datepicker in the bundle config -->
        @(Scripts.Render("~/bundles/jquery", "~/bundles/jqueryui", "~/bundles/jqueryval", "~/bundles/nakedobjectsajax", "~/bundles/jquerydatepicker"))       
        @RenderSection("ScriptsSection", required: false)     
    </body>
</html>